<template>
	<view class="message_content">
    <view class='cu-load load-modal' v-if="loading">
      <image :src='iconUrl' class='png' mode='aspectFit'></image>
      <view class='gray-text'>加载中...</view>
    </view>
	</view>
</template>

<script>
	export default {
		name: 'message',
		props: {
		},
		data() {
			return {
        loading: false, // 显示加载框
        iconUrl: this.CONFIG.iconUrl, // 加载框icon
			}
		},
		computed: {
		},
		methods: {
      showLoading(){
        this.loading = true
      },
      hideLoading(){
        this.loading = false
      },
		}
	}
</script>

<style lang="scss" scoped>
	.message_content {
    .cu-load{
      .png{
        background-color: transparent;
      }
    }
	}
</style>
